package com.hyperion.blog.utils;

import com.hyperion.blog.dao.pojo.SysUser;

/**
 * @author Hyperion
 */
public class UserThreadLocal {

    private static final ThreadLocal<SysUser> THREAD_LOCAL = new ThreadLocal<>();

    private UserThreadLocal() {

    }

    public static void set(SysUser sysUser) {
        THREAD_LOCAL.set(sysUser);
    }

    public static SysUser get() {
        return THREAD_LOCAL.get();
    }

    public static void remove() {
        THREAD_LOCAL.remove();
    }

}
